<template>

<div v-html="content" id="content" style="">
      <!-- <el-table
      :data="tableData"
      :stripe="true"
      :border=true
      style="width: 100%" >
        <el-table-column
          prop="date"
          label="用户名" >
        </el-table-column>
        <el-table-column
          prop="name"
          label="类型" >
        </el-table-column>
        <el-table-column
          prop="province"
          label="姓名" >
        </el-table-column>
        <el-table-column
          prop="city"
          label="角色" >
        </el-table-column>
        <el-table-column
          prop="address"
          label="创建时间"
          width="300">
        </el-table-column>
        <el-table-column
            fixed="right"
            label="操作"
            width="220">
          <template slot-scope="scope">
              <el-button
                size="mini"
                @click="handleEdit(scope.$index, scope.row)">详情</el-button>
              <el-button
                size="mini"
                type="primary"
                @click="handleEdit(scope.$index, scope.row)">重推</el-button>
              <el-button
                size="mini"
                type="danger"
                @click="handleDelete(scope.$index, scope.row)">取消</el-button>
            </template>
        </el-table-column>
      </el-table> -->
       
</div>
</template>

<script>
  import {logContent } from '../../api/apis'
  export default {
    data() {
      return {
        tableData: [ {
          date: '2016-05-07',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }],
        content:""
      }
    },
    methods: {
      handleEdit(index, row) {
          console.log(index, row);
      },
      handleDelete(index, row) {
          console.log(index, row);
      } 
    },
    created: function () {
        let that= this
        logContent()
          .then(function (res) {
              if(res.status === 200 ){
                if(res.data.code == 0){
                  that.content = res.data.data;
                }else{
                  that.$message.error(res.data.msg)
                }
              }
          })
    }
  }
</script>

 <style type="text/css" scoped>
   
   #content{
      height:750px; font-size: 12px;line-height: 20px;font-family: Courier New; width:100%;overflow:scroll; 
      
   }
 
   
</style>